﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

namespace WebApplication1.Classes
{
    class Contract
    {
        public Contract(int id, int idFlat, int idAgent, bool fire, bool water, bool wear, bool problem, bool loot, DateTime date, int sum)
        {
            this.id = id;
            this.idFlat = idFlat;
            this.idAgent = idAgent;
            this.fire = fire;
            this.water = water;
            this.wear = wear;
            this.problem = problem;
            this.loot = loot;
            this.date = date;
            this.sum = sum;
        }
        private int id;
        private int idFlat;
        private int idAgent;
        private bool fire;
        private bool water;
        private bool wear;
        private bool problem;
        private bool loot;
        private DateTime date;
        private int sum;

        public int Id
        {
            get { return id; }
            set { id = value; }
        }

        public int IdFlat
        {
            get { return idFlat; }
            set { idFlat = value; }
        }
        public int IdAgent
        {
            get { return idAgent; }
            set { idAgent = value; }
        }
        public bool Fire
        {
            get { return fire; }
            set { fire = value; }
        }
        public bool Water
        {
            get { return water; }
            set { water = value; }
        }
        public bool Wear
        {
            get { return wear; }
            set { wear = value; }
        }
        public bool Problem
        {
            get { return problem; }
            set { problem = value; }
        }
        public bool Loot
        {
            get { return loot; }
            set { loot = value; }
        }
        public DateTime Date
        {
            get { return date; }
            set { date = value; }
        }
        public int Sum
        {
            get { return sum; }
            set { sum = value; }
        }

    }
}
